﻿using System;
using System.Collections.Generic;
using System.Text;
using Model;

namespace IBLL.View
{
    public interface IEditView : IViewForm
    {


        /// <summary>
        void OnAdjustUI(EntityState editStat, IDataTrans data);

        /// <summary>
        ///存放新数据到界
        /// </summary>
        void OnSetDataToView(EntityState editStat, IDataTrans data);
        /// <summary>
        /// 获取数据到界面
        /// </summary>
        void OnGetFromView(EntityState editStat, IDataTrans data);
        /// <summary>
        /// 错误处理
        /// </summary>
        void ShowError(string error);
        /// <summary>
        /// 创建动作
        /// </summary>
        event EventHandler CreateAction;
        /// <summary>
        /// 保存动作
        /// </summary>
        event EventHandler SaveAction;
        /// <summary>
        /// 在保存动作之前
        /// </summary>
        void BeforeSaveAction(IDataTrans data);

        /// <summary>
        /// 删除动作
        /// </summary>
        event EventHandler DeleteAction;

        /// <summary>
        /// 刷新界面
        /// </summary>
        void RefreshUI(object sender, string  data);
    }
}
